<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
	<script type="text/javascript" src="/deng/include/include-css.js"></script>
	<script type="text/javascript" src="/deng/include/inplug-css.js"></script>
	<link href="/deng/source/css/bootlist.css" rel="stylesheet" type="text/css" />
	<title>资源管理</title>
	<style>
		.dataTable .row-details {
			margin-top: 3px;
			display: inline-block;
			cursor: pointer;
			width: 14px;
			height: 14px;
		}
		.dataTable .row-details.row-details-open {
			background: url(/deng/images/icons/datatable-row-openclose.png) no-repeat 0 -23px !important;
		}
		.dataTable .row-details.row-details-close {
			background: url(/deng/images/icons/datatable-row-openclose.png) no-repeat 0 0;
		}
	</style>
</head>
<body>
	<div class="m-content jehc-content-1">
		<div class="m-portlet">
			<div class="m-portlet__head">
				<div class="m-portlet__head-caption">
					<div class="m-portlet__head-title">
						<h3 class="m-portlet__head-text">
							<span class="m-accordion__item-icon"><i class="flaticon-search"></i>资源列表</span>
						</h3>
					</div>
				</div>
			</div>
			<form class="m-form m-form--fit m-form--label-align-left m-form--group-seperator-dashed" method="POST" id="searchForm" onsubmit="search('datatables');return false;">
				<div class="m-portlet__body">
					<div class="form-group m-form__group row">
						<label class="col-form-label">名称</label>
						<div class="col-lg-2">
							<input type="text" class="form-control" name="sysname" placeholder="请输入">
						</div>
						<label class="col-form-label">状态</label>
						<div class="col-lg-2">
							<select class="form-control" name="sys_mode_status">
								<option value="">---请选择---</option>
								<option value="0">正常</option>
								<option value="1">冻结</option>
							</select>
						</div>
						<a href="javascript:search('datatables')" class="btn btn-light-primary font-weight-bold mr-2">
							<span><i class="fa fa-search"></i><span>检&nbsp;&nbsp;索</span></span>
						</a>
						<a href="javascript:resetAll();" class="btn btn-light-success font-weight-bold mr-2">
							<span><i class="fa fa-repeat"></i><span>清空条件</span></span>
						</a>
					</div>
				</div>
				<div class="m-portlet__foot m-portlet__no-border m-portlet__foot--fit">
					<div class="m-form__actions m-form__actions--solid">
						<div class="row">
							<div class="col m--align-left">
								<a class="btn btn-light-primary font-weight-bold mr-2 m-btn--custom m-btn--bolder m-btn--uppercase" href="javascript:addXtMenuinfo()">
									<span><i class="la la-plus la-lg"></i><span>创建资源</span></span>
								</a>
								<a class="btn btn-secondary m-btn m-btn--custom m-btn--label-success mr-2" href="javascript:importOauthResources()">
									<span><i class="fa flaticon-folder-3"></i><span> 导 入</span></span>
								</a>
							</div>
							<div class="col m--align-right">
								<a class="btn btn-light-warning font-weight-bold mr-2 m-btn m-btn--custom m-btn--icon" href="javascript:search('datatables')">
									<span><i class="fa fa-spin fa-refresh m-r-5"></i><span>刷 新</span></span>
								</a>
							</div>
						</div>
					</div>
				</div>
			</form>
		</div>
		<table id="datatables" class="table table-bordered table-striped table-hover" style="white-space: nowrap; width: 99.9%">
			<thead>
			<tr>
				<th><label class="mt-checkbox mt-checkbox-single mt-checkbox-outline"><input type="checkbox" class="checkall" /><span></span></label></th>
				<th>#</th>
				<th>名称</th>
				<th>状态</th>
				<th>创建人</th>
				<th>创建时间</th>
				<th>修改人</th>
				<th>修改时间</th>
				<th>操作</th>
			</tr>
			</thead>
		</table>
	</div>


	<!-- 创建资源页面模态框（Modal）开始 -->
	<div class="modal fade" id="addXtMenuinfoModal" tabindex="-1" role="dialog" aria-labelledby="addXtMenuinfoModalLabel" aria-hidden="true">
		<div class="modal-dialog modal-lg modal-dialog-centered">
			<div class="modal-content">
				<div class="modal-header">
					<h4 class="modal-title" id="addXtMenuinfoModalLabel">
						创建资源
					</h4>
				</div>
				<div class="modal-body">
					<form id="addXtMenuinfoForm" method="post">
						<div class="row">
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="resources_title">资源标题</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<input class="form-control placeholder-no-fix" type="text" placeholder="请输入资源标题" data-bv-notempty data-bv-notempty-message="请输入资源标题" name="resources_title"/>
								</div>
							</div>
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="resources_url">访问地址</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<input class="form-control placeholder-no-fix" type="text"  placeholder="请输入访问地址"  name="resources_url"/>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="resources_parentid">上级资源</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<input class="form-control placeholder-no-fix" type="hidden" name="resources_parentid" id="resources_parentid"/>
									<input class="form-control placeholder-no-fix" type="text" id="resources_parentTitle" disabled="disabled"/>
								</div>
							</div>
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="resources_leaf">存在下级</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<select class="form-control" maxlength="32" name="resources_leaf">
										<option value="0">是</option>
										<option value="1">否</option>
									</select>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="resources_iconCls">字体图标</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<input class="form-control placeholder-no-fix" type="text" placeholder="请输入字体图标"  name="resources_iconCls"/>
								</div>
							</div>
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="resources_sys">是否平台资源</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<select class="form-control" maxlength="32" name="resources_sys">
										<option value="0">否</option>
										<option value="1">是</option>
									</select>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="resources_module_id">所属模块</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<select class="form-control" maxlength="32" name="resources_module_id" id="resources_module_id">
									</select>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="resources_sort">排序编号</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<input class="form-control placeholder-no-fix" type="text" value="0" data-bv-numeric data-bv-numeric-message="排序编号数字类型"  placeholder="请输入排序编号" data-bv-notempty data-bv-notempty-message="请输入排序编号"  name="resources_sort"/>
								</div>
							</div>
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="resources_status">资源状态</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<select class="form-control" maxlength="32" name="resources_status">
										<option value="0">可用</option>
										<option value="1">禁用</option>
									</select>
								</div>
							</div>
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-secondary m-btn m-btn--custom m-btn--icon" data-dismiss="modal">关 闭</button>
					<button type="button" class="btn btn-light-primary font-weight-bold mr-2 m-btn m-btn--custom m-btn--icon" onclick="doAddXtMenuinfo()">提交更改</button>
				</div>
			</div><!-- /.modal-content -->
		</div><!-- /.modal -->
	</div>
	<!-- 创建资源页面模态框（Modal）结束 -->


	<!-- 资源页面模态框（Modal）开始 -->
	<div class="modal fade" id="updateXtMenuinfoModal" tabindex="-1" role="dialog" aria-labelledby="updateXtMenuinfoModalLabel" aria-hidden="true">
		<div class="modal-dialog modal-lg modal-dialog-centered">
			<div class="modal-content">
				<div class="modal-header">
					<h4 class="modal-title" id="updateXtMenuinfoModalLabel">
						编辑资源
					</h4>
				</div>
				<div class="modal-body">
					<form id="updateXtMenuinfoForm" method="post">
						<div class="row">
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="resources_title">资源标题</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<input class="form-control placeholder-no-fix" type="text" placeholder="请输入资源标题" data-bv-notempty data-bv-notempty-message="请输入资源标题" name="resources_title" id="resources_title"/>
								</div>
							</div>
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="resources_module_idTemp">所属模块</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<input class="form-control placeholder-no-fix" type="hidden" id="resources_module_idTemp"/>
									<select class="form-control" maxlength="32" name="resources_module_id" id="resources_module_id_">
									</select>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="xt_menuinfo_parentId">上级资源</label>
							</div>
							<div class="col-md-4">
								<div class="form-group input-group">
									<input class="form-control placeholder-no-fix" type="hidden" name="resources_parentid" id="resources_parentid_"/>
									<input class="form-control placeholder-no-fix" type="hidden" name="resources_id" id="resources_id"/>
									<input class="form-control placeholder-no-fix" type="text" id="resources_parentidTitle_" disabled="disabled"/>
									<span class="input-group-btn">
											<button class="btn btn-default" type="button" onclick="changeMenuinfoSelect()">
												选择
											</button>
										</span>
								</div>
							</div>
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="resources_leaf">存在下级</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<select class="form-control" maxlength="32" name="resources_leaf" id="resources_leaf">
										<option value="0">是</option>
										<option value="1">否</option>
									</select>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="resources_iconCls">字体图标</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<input class="form-control placeholder-no-fix" type="text" placeholder="请输入字体图标"  name="resources_iconCls" id="resources_iconCls"/>
								</div>
							</div>
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="resources_sys">是否平台资源</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<select class="form-control" maxlength="32" name="resources_sys" id="resources_sys">
										<option value="0">否</option>
										<option value="1">是</option>
									</select>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="resources_url">访问地址</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<input class="form-control placeholder-no-fix" type="text"  placeholder="请输入访问地址"  name="resources_url" id="resources_url"/>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="resources_sort">排序编号</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<input class="form-control placeholder-no-fix" type="text" value="0" data-bv-numeric data-bv-numeric-message="排序编号数字类型"  placeholder="请输入排序编号" data-bv-notempty data-bv-notempty-message="请输入排序编号"  name="resources_sort"  id="resources_sort"/>
								</div>
							</div>
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="resources_status">资源状态</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<select class="form-control" maxlength="32" name="resources_status" id="resources_status">
										<option value="0">可用</option>
										<option value="1">禁用</option>
									</select>
								</div>
							</div>
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-secondary m-btn m-btn--custom m-btn--icon" data-dismiss="modal">取 消</button>
					<button type="button" class="btn btn-light-primary font-weight-bold mr-2 m-btn m-btn--custom m-btn--icon" onclick="doUpdateXtMenuinfo()">提交更改</button>
				</div>
			</div><!-- /.modal-content -->
		</div><!-- /.modal -->
	</div>
	<!-- 资源编辑页面模态框（Modal）结束 -->


	<!-- 资源上级变更页面模态框（Modal）开始 -->
	<div class="modal fade" id="changeXtMenuinfoModal" tabindex="-1" role="dialog" aria-labelledby="changeXtMenuinfoModalLabel" aria-hidden="true">
		<div class="modal-dialog modal-lg modal-dialog-centered">
			<div class="modal-content">
				<div class="modal-header">
					<h4 class="modal-title" id="changeXtMenuinfoModalLabel">
						上级资源
					</h4>
				</div>
				<div class="modal-body" id="changeXtMenuinfoBody" style="overflow:auto;">
					<div class="form-group m-form__group row">
						<label class="col-form-label">隶属平台:</label>
						<div class="col-lg-3">
							<select class="form-control" id="sysmode_id" placeholder="请选择" onchange="doThisEvent(this)">
								<option value="">请选择</option>
							</select>
						</div>
					</div>
					<div class="form-group m-form__group row">
						<ul id="tree" class="ztree">暂无数据</ul>
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-secondary m-btn m-btn--custom m-btn--icon" data-dismiss="modal">取 消</button>
					<button type="button" class="btn btn-light-primary font-weight-bold mr-2 m-btn m-btn--custom m-btn--icon" onclick="doXtMenuinfoSel()">确 认</button>
				</div>
			</div><!-- /.modal-content -->
		</div><!-- /.modal -->
	</div>
	<!-- 资源上级变更页面模态框（Modal）结束 -->

	<!-- upload导入模态框（Modal）开始 -->
	<div class="modal fade" id="oauthResourcesFileModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static"  aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<h4 class="modal-title" id="oauthResourcesFileModalTitle">
						请上传要导入的附件（附件格式：json,txt）
					</h4>
					<button type="button" class="close" data-dismiss="modal" onclick="closeOauthResourcesFileWin()" aria-hidden="true">&times;</button>
				</div>
				<div class="modal-body">
					<form method="post" enctype="multipart/form-data">
						<div class="file-loading">
							<input id="oauthResourcesFile" name="oauthResourcesFile" type="file" multiple class="file-loading">
						</div>
					</form>
				</div>
				<!--<div class="modal-footer">
                    <button type="button" class="btn btn-light-danger font-weight-bold mr-2" onclick="closeProcessFileWin()">关 闭</button>
                </div>-->
			</div><!-- /.modal-content -->
		</div><!-- /.modal -->
	</div>
	<!-- upload导入模态框（Modal）结束 -->
</body>
<script type="text/javascript" src="/deng/include/include.js"></script>
<script type="text/javascript" src="/deng/include/inplug.js"></script>
<script type="text/javascript" src="/deng/view/oauth/oauth-resources/oauth-resources-list.js"></script>
<script type="text/javascript" src="/deng/view/oauth/oauth-resources/oauth-resources-add.js"></script>
<script type="text/javascript" src="/deng/view/oauth/oauth-resources/oauth-resources-update.js"></script>
<link href="/deng/source/plugins/other/bootstrap-table-treegrid/version_/assets/bootstrap-table.css" rel="stylesheet">
<script type="text/javascript" src="/deng/source/plugins/other/bootstrap-table-treegrid/version_/assets/bootstrap-table.js"></script>
<script type="text/javascript" src="/deng/source/plugins/other/bootstrap-table-treegrid/js/bootstrap-table-zh-CN.js"></script>
<script type="text/javascript" src="/deng/source/plugins/other/bootstrap-table-treegrid/version_/src/bootstraptable-treeview.js"></script>
<style>
	/* dataTables表头居中 */
	.table>thead:first-child>tr:first-child>th {
		text-align: left;
		background-color: #fff;
		/*font-weight: normal;*/
	}
	.fixed-table-container thead th .th-inner, .fixed-table-container tbody td .th-inner {
		padding: 8px;
		line-height: 24px;
		vertical-align: top;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.table>thead:first-child>tr:first-child>th p{
		text-align:left;
		/*font-weight:normal;*/
	}
	.table>tbody>tr>td {
		text-align:left;
	}
	.fixed-table-container .bs-checkbox {
		text-align:left;
	}
	/*.table>thead:first-child>tr:first-child>th {
		background-color: #fff;
	}*/
	.bootstrap-table .table {
		margin-bottom: 0 !important;
		border-bottom: 1px solid #ebedf2;
		border-collapse: collapse !important;
		border-radius: 1px;
	}
	.table-striped tbody tr:nth-of-type(odd) {
		background-color: #faf9fc;;
	}
	.fixed-table-container tbody td {
		border-left: 1px solid #ebedf2;
	}
	/*[class*=" la-"], [class^="la-"] {*/
		/*font-size: 1.1rem;*/
	/*}*/

	.bootstrap-table .table > thead > tr > th {
		border-bottom: 0px solid #ebedf2;
	}

	.fixed-table-container {
		position: relative;
		clear: both;
		border: 0px solid #dddddd;
		border-radius: 4px;
		-webkit-border-radius: 4px;
		-moz-border-radius: 4px;
	}

	/*[class*=" flaticon-"], [class^=flaticon-] {
		font-size: 1.3rem;
		padding: 8px;
	}*/
/*
	.bootstrap-table .table:not(.table-condensed), .bootstrap-table .table:not(.table-condensed) > tbody > tr > th, .bootstrap-table .table:not(.table-condensed) > tfoot > tr > th, .bootstrap-table .table:not(.table-condensed) > thead > tr > td, .bootstrap-table .table:not(.table-condensed) > tbody > tr > td, .bootstrap-table .table:not(.table-condensed) > tfoot > tr > td {
		padding-bottom: 20px;
		padding-top: 20px;
	}*/
	/*.table>thead:first-child>tr:first-child>th {
		background-color: #f5f5f5;
	}*/
</style>
<!-- 文件上传通用模块开始 -->
<link rel="stylesheet" href="/deng/source/plugins/newAdmin/bootstrap/4.0.0/bootstrap-icons/bootstrap-icons.min.css" crossorigin="anonymous">
<link href="/deng/source/plugins/newAdmin/bootstrap/bootstrap-fileinput/css/fileinput.css" media="all" rel="stylesheet" type="text/css" />
<script src="/deng/source/plugins/newAdmin/bootstrap/bootstrap-fileinput/js/fileinput.js" type="text/javascript"></script>
<script src="/deng/source/plugins/newAdmin/bootstrap/bootstrap-fileinput/js/locales/zh.js" type="text/javascript"></script>
<!-- 文件上传通用模块结束 -->
</html>